<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        /**
         * 算术
         */
        var a = 5
        var b = 2
        var c = '3'
        var d = '5'
        var e = true
        // console.log(a + b)
        // console.log(a - b)
        // console.log(a * b)
        // console.log(a / b)
        // console.log(a % b)
        // console.log(a ** b)
        // console.log(a + c)
        // console.log(a - c) // 会自动将c转换为数值
        // console.log(a++)
        // console.log(++a)
        // console.log(a--)

        /**
         * 比较运算符
         */
        console.log(a > b)
        console.log(a <= b)
        console.log(a == b)
        console.log(a != b)
        console.log(a == d) // 等于，只判断内容
        console.log(a === d) // 全等于，既要判断内容，又要判断类型
        console.log(a == e) // 将boolean转换为数字

    </script>
</head>
<body>

</body>
</html>